package cn.four.hqServer.common.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author znb
 * @since 2023-02-23
 */
@TableName("hq_card_info")
@ApiModel(value = "HqCardInfo对象", description = "")
public class HqCardInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("银行卡号")
    @TableId
    private String cardId;

    @ApiModelProperty("身份证号")
    private String userId;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("余额")
    private BigDecimal balance;

    @ApiModelProperty("正常、透支、冻结、注销")
    private Integer state;

    @ApiModelProperty("开户时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "HqCardInfo{" +
            "cardId=" + cardId +
            ", userId=" + userId +
            ", password=" + password +
            ", balance=" + balance +
            ", state=" + state +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
